import request from '@/utils/request'
export default{
 //添加课程信息功能
 addcouseinfo(courseinfo){
   return request({
     url: `/eduservice/educourse/addCourseInfo`,
     method: 'post',
     data: courseinfo
   })
 },
 //获取所有讲师信息
 getallteachers(){
   return request({
     url: `/eduservice/edu-teacher/findAll`,
     method: 'get'
   })
 },
 //根据课程id查询课程的基本信息
 getcourseinfobyidx(courseid){
   return request({
     url: `/eduservice/educourse/getcourseinfobyid/${courseid}`,
     method: 'get'
   })
 },
 //修改课程的信息
 updatecourseinfobyid(courseInfoVo){
   return request({
     url: `/eduservice/educourse/updatecourseinfo`,
     method: 'post',
     data: courseInfoVo
   })
 },
 //最终确认课程信息 回显
 getcourseSubmitFinally(courseid){
   return request({
     url: `/eduservice/educourse/courseinfofinallysubmit/${courseid}`,
     method: 'get'
   })
 },
 //课程的最终发布
 submitcourse(courseid){
   return request({
     url: `/eduservice/educourse/coursesubmitbyid/${courseid}`,
     method: 'get'
   })
 },
 //课程的下架
 discourse(courseid){
   return request({
     url: `/eduservice/educourse/coursedisbyid/${courseid}`,
     method: 'get'
   })
 },
 //课程列表显示
 courselist(courseQueryVo){
   return request({
     url: `/eduservice/educourse/pagequeryCourselist`,
     method: 'post',
     data: courseQueryVo
   })
 },
 //课程分类统计
 courseclasscp(){
   return request({
     url: `/eduservice/educourse/getcourseclasscp`,
     method: 'get'
   })
 },
 //课程的逻辑删除
 deletecourseInfoLogic(courseid){
   return request({
     url: `/eduservice/educourse/logicdeleteCourse/${courseid}`,
     method: 'delete'
   })
 },
 // 课程资料
 // 插入资料
 insertcousefile(coursefileupdataVo){
   return request({
     url: `/eduservice/coursefile/coursefileinsert`,
     method: 'post',
     data: coursefileupdataVo
   })
 },
 //删除课程资料
 coursefiledelete(id){
   return request({
     url: `/eduservice/coursefile/deletecoursefile/${id}`,
     method: 'delete'
   })
 },
 //获取课程资料列表
 getcoursefilelist(courseid){
   return request({
     url: `/eduservice/coursefile/getcoursefile/${courseid}`,
     method: 'get'
   })
 }
 
  }
